import request from '@/utils/request'

export function wxLogin(data) {
    return request({
        url: '/biz/wxLogin/loginBycode',
        headers: {
            isToken: false,
        },
        method: 'post',
        data
    })
}

export function getCodeApi(data) {
    return request({
        url: '/biz/wxHandle/sendSmsCode',
        headers: {
            isToken: false,
        },
        method: 'post',
        data,
        loading: false
    })
}
export function loginByPhone(data) {
    return request({
        url: '/biz/wxLogin/loginByPhone',
        headers: {
            isToken: false,
        },
        method: 'post',
        data,
        loading: false
    })
}
export function apiLogin(data) {
    return request({
        url: '/mp/api/auth/login',
        headers: {
            isToken: false,
        },
        method: 'post',
        data,
        loading: false
    })
}
export function apiQryUserInfo(data) {
    return request({
        url: '/biz/wxLogin/loginByPhone',
        headers: {
            isToken: false,
        },
        method: 'post',
        data,
        loading: false
    })
}